Integrand size = 23, antiderivative size = 70 \[ \int \frac {\text {csch}^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {\sqrt {b} (a+b) \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{a^{5/2} d}+\frac {(a+b) \coth (c+d x)}{a^2 d}-\frac {\coth ^3(c+d x)}{3 a d} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3744, 464, 331, 211} \[ \int \frac {\text {csch}^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {\sqrt {b} (a+b) \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{a^{5/2} d}+\frac {(a+b) \coth (c+d x)}{a^2 d}-\frac {\coth ^3(c+d x)}{3 a d} \]
[In]
[Out]
Rule 211
Rule 331
Rule 464
Rule 3744
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1-x^2}{x^4 \left (a+b x^2\right )} \, dx,x,\tanh (c+d x)\right )}{d} \\ & = -\frac {\coth ^3(c+d x)}{3 a d}-\frac {(a+b) \text {Subst}\left (\int \frac {1}{x^2 \left (a+b x^2\right )} \, dx,x,\tanh (c+d x)\right )}{a d} \\ & = \frac {(a+b) \coth (c+d x)}{a^2 d}-\frac {\coth ^3(c+d x)}{3 a d}+\frac {(b (a+b)) \text {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\tanh (c+d x)\right )}{a^2 d} \\ & = \frac {\sqrt {b} (a+b) \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{a^{5/2} d}+\frac {(a+b) \coth (c+d x)}{a^2 d}-\frac {\coth ^3(c+d x)}{3 a d} \\ \end{align*}
Time = 0.69 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.01 \[ \int \frac {\text {csch}^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {3 \sqrt {b} (a+b) \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )+\sqrt {a} \coth (c+d x) \left (2 a+3 b-a \text {csch}^2(c+d x)\right )}{3 a^{5/2} d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(245\) vs. \(2(60)=120\).
Time = 1.57 (sec) , antiderivative size = 246, normalized size of antiderivative = 3.51
method | result | size |
risch | \(-\frac {2 \left (-3 b \,{\mathrm e}^{4 d x +4 c}+6 \,{\mathrm e}^{2 d x +2 c} a +6 b \,{\mathrm e}^{2 d x +2 c}-2 a -3 b \right )}{3 d \,a^{2} \left ({\mathrm e}^{2 d x +2 c}-1\right )^{3}}+\frac {\sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a b}+a -b}{a +b}\right )}{2 a^{2} d}+\frac {\sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a b}+a -b}{a +b}\right ) b}{2 a^{3} d}-\frac {\sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a b}-a +b}{a +b}\right )}{2 a^{2} d}-\frac {\sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a b}-a +b}{a +b}\right ) b}{2 a^{3} d}\) | \(246\) |
derivativedivides | \(\frac {-\frac {\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} a}{3}-3 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right ) a -4 b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a^{2}}-\frac {2 b \left (a +b \right ) \left (\frac {\left (a +\sqrt {\left (a +b \right ) b}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}-\frac {\left (-a +\sqrt {\left (a +b \right ) b}-b \right ) \operatorname {arctanh}\left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{a}-\frac {1}{24 a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}-\frac {-3 a -4 b}{8 a^{2} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}}{d}\) | \(247\) |
default | \(\frac {-\frac {\frac {\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} a}{3}-3 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right ) a -4 b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a^{2}}-\frac {2 b \left (a +b \right ) \left (\frac {\left (a +\sqrt {\left (a +b \right ) b}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}-\frac {\left (-a +\sqrt {\left (a +b \right ) b}-b \right ) \operatorname {arctanh}\left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{a}-\frac {1}{24 a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}-\frac {-3 a -4 b}{8 a^{2} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}}{d}\) | \(247\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 653 vs. \(2 (60) = 120\).
Time = 0.28 (sec) , antiderivative size = 1628, normalized size of antiderivative = 23.26 \[ \int \frac {\text {csch}^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\text {csch}^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\int \frac {\operatorname {csch}^{4}{\left (c + d x \right )}}{a + b \tanh ^{2}{\left (c + d x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 134 vs. \(2 (60) = 120\).
Time = 0.30 (sec) , antiderivative size = 134, normalized size of antiderivative = 1.91 \[ \int \frac {\text {csch}^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {2 \, {\left (6 \, {\left (a + b\right )} e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, b e^{\left (-4 \, d x - 4 \, c\right )} - 2 \, a - 3 \, b\right )}}{3 \, {\left (3 \, a^{2} e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, a^{2} e^{\left (-4 \, d x - 4 \, c\right )} + a^{2} e^{\left (-6 \, d x - 6 \, c\right )} - a^{2}\right )} d} - \frac {{\left (a b + b^{2}\right )} \arctan \left (\frac {{\left (a + b\right )} e^{\left (-2 \, d x - 2 \, c\right )} + a - b}{2 \, \sqrt {a b}}\right )}{\sqrt {a b} a^{2} d} \]
[In]
[Out]
\[ \int \frac {\text {csch}^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\int { \frac {\operatorname {csch}\left (d x + c\right )^{4}}{b \tanh \left (d x + c\right )^{2} + a} \,d x } \]
[In]
[Out]
Time = 2.28 (sec) , antiderivative size = 254, normalized size of antiderivative = 3.63 \[ \int \frac {\text {csch}^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {2\,b}{a^2\,d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}-\frac {8}{3\,a\,d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}-3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}-1\right )}-\frac {4}{a\,d\,\left ({\mathrm {e}}^{4\,c+4\,d\,x}-2\,{\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}+\frac {\sqrt {-b}\,\ln \left (-\frac {4\,b\,{\mathrm {e}}^{2\,c+2\,d\,x}}{a^2}-\frac {2\,\sqrt {-b}\,\left (a\,d+b\,d+a\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}-b\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}\right )}{a^{5/2}\,d}\right )\,\left (a+b\right )}{2\,a^{5/2}\,d}-\frac {\sqrt {-b}\,\ln \left (\frac {2\,\sqrt {-b}\,\left (a\,d+b\,d+a\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}-b\,d\,{\mathrm {e}}^{2\,c+2\,d\,x}\right )}{a^{5/2}\,d}-\frac {4\,b\,{\mathrm {e}}^{2\,c+2\,d\,x}}{a^2}\right )\,\left (a+b\right )}{2\,a^{5/2}\,d} \]
[In]
[Out]